Deprecated. Please use payment-level external gateway APIs: /merchant/payment/external_gateway_payment/mark_paid. This invoice-level API is kept for compatibility only.
https://api.unibee.dev/merchant/invoice/external_gateway_invoice/mark_paid
Deprecated. Please use payment-level external gateway APIs: /merchant/payment/external_gateway_payment/mark_paid. This invoice-level API is kept for compatibility only.
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <your_api_key> |
Content-Type | Yes | application/json (for request body) |
| Name | Type | Required | Description |
|---|---|---|---|
externalTransactionId | string | Yes | External payment transaction id from gateway, used as idempotent key |
gatewayId | integer | No | Optional. External gateway id; omit to use invoice’s current gateway for auth |
invoiceId | string | Yes | Invoice id |
metadata | object | No | Additional metadata from external gateway |
paidTime | integer | No | Paid time, UTC timestamp in seconds (optional, default now) |
signature | string | Yes | HMAC-SHA256(gatewayKey, invoiceId|externalTransactionId|timestamp), hex-encoded |
timestamp | integer | Yes | Request timestamp, UTC seconds, used for expiry check |
code, data, message, redirect, and requestId. code 0 indicates success.
| Field | Type | Description |
|---|---|---|
code | integer | Response code. 0 = success |
data | object | Response payload |
data.invoiceId | string | Invoice id |
data.paymentId | string | Created or reused payment id |
data.status | string | Result status, e.g. success |
data.subscriptionId | string | Subscription id |
message | string | Human-readable message |
requestId | string | Request ID for support |
| HTTP status | Meaning |
|---|---|
| 400 | Bad request — invalid or missing parameters. Check message in the body. |
| 401 | Unauthorized — missing or invalid API key. |
| 404 | Not found — invalid path or resource. |
| 500 | Server error — retry with backoff. |
code in the response body is non-zero, check message for details. Use requestId when contacting support.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Deprecated. Please use payment-level external gateway APIs: /merchant/payment/external_gateway_payment/mark_paid. This invoice-level API is kept for compatibility only.
External payment transaction id from gateway, used as idempotent key
Invoice id
HMAC-SHA256(gatewayKey, invoiceId|externalTransactionId|timestamp), hex-encoded
Request timestamp, UTC seconds, used for expiry check
Optional. External gateway id; omit to use invoice's current gateway for auth
Additional metadata from external gateway
Paid time, UTC timestamp in seconds (optional, default now)